package com.ruleengine.worker.model;

import lombok.Builder;
import lombok.Getter;
import lombok.ToString;

/**
 * @author lianghanwei on 2024/3/3
 */
@ToString
@Builder(toBuilder = true)
@Getter
public class Status {

    private volatile Phase phase;

//    private long startTime;

//    private String message;

//    private Reason reason;

//    private String hostIp;

    public enum Phase {
        PENDING,
        RUNNING,
        ERROR,
        BANNED,
        DELETED
    }

    public enum Reason {
        USER_DELETED,
        NETWORK_ERROR
    }

}
